import request from '@/utils/request'

//获取司机的运输列表
export function  getTaskList(query) {
  return request({
    url: '/transport/driver/list',
    method: 'get',
    params: query
  })
}

//获取任务详细信息
export function  getTaskInfo(taskId) {
  return request({
    url: '/transport/driver',
    method: 'get',
    params: {taskId:taskId}
  })
}

export function changeState(data){
  return request({
    url:'/transport/driver',
    method: 'put',
    params:data
  })
}
